﻿using System;
using System.Collections.Generic;

namespace Model
{
     ///<summary>
     ///实体类SYSTEM_MODULE
     ///</summary>
     public class SYSTEM_MODULE
     {
         private int __mid=0 ;
         private int? __pid=null ;
         private int? __morder=null ;
         private string __mname=string.Empty ;
         private string __murl=string.Empty ;
         private string __mdisabled=string.Empty ;

         private Dictionary<string, bool> __Changed = new Dictionary<string, bool>();


         public SYSTEM_MODULE()
         {
             this.__Changed.Add("mid",false);
             this.__Changed.Add("pid",false);
             this.__Changed.Add("morder",false);
             this.__Changed.Add("mname",false);
             this.__Changed.Add("murl",false);
             this.__Changed.Add("mdisabled",false);
         }

         /// <summary>
         /// 将类重置到初始化状态
         /// </summary>
         public void Reset()
         {
             this.__mid =0;
             this.__pid =null;
             this.__morder =null;
             this.__mname =string.Empty;
             this.__murl =string.Empty;
             this.__mdisabled =string.Empty;
             this.__Changed["mid"] = false;
             this.__Changed["pid"] = false;
             this.__Changed["morder"] = false;
             this.__Changed["mname"] = false;
             this.__Changed["murl"] = false;
             this.__Changed["mdisabled"] = false;
         }

         /// <summary>
         /// 获取类中成员的改变状态
         /// </summary>
         public bool Changed(string strKey)
         {
             return __Changed[strKey];
         }

         /// <summary>
         ///设置或获取类中的[mid]的数据
         /// </summary>
         public int mid
         {
              set{ __mid = value; __Changed["mid"] = true;}
              get{return __mid;}
         }
         /// <summary>
         ///设置或获取类中的[pid]的数据
         /// </summary>
         public int? pid
         {
              set{ __pid = value; __Changed["pid"] = true;}
              get{return __pid;}
         }
         /// <summary>
         ///设置或获取类中的[morder]的数据
         /// </summary>
         public int? morder
         {
              set{ __morder = value; __Changed["morder"] = true;}
              get{return __morder;}
         }
         /// <summary>
         ///设置或获取类中的[mname]的数据
         /// </summary>
         public string mname
         {
              set{ __mname = value.Replace("'","’"); __Changed["mname"] = true;}
              get{return __mname;}
         }
         /// <summary>
         ///设置或获取类中的[murl]的数据
         /// </summary>
         public string murl
         {
              set{ __murl = value.Replace("'","’"); __Changed["murl"] = true;}
              get{return __murl;}
         }
         /// <summary>
         ///设置或获取类中的[mdisabled]的数据
         /// </summary>
         public string mdisabled
         {
              set{ __mdisabled = value.Replace("'","’"); __Changed["mdisabled"] = true;}
              get{return __mdisabled;}
         }
    }
}
